package thread;

public class Vec {
    double x, y;
    public Vec(double x, double y) {
        this.x = x; this.y = y;
    }

    public Vec add(Vec v) {
        return new Vec(v.x + this.x, v.y + this.y);
    }

    public Vec multi(double f) {
        return new Vec(this.x * f, this.y * f);
    }
}
